using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;using Maxleaf.EDI.Domain.K3;

namespace Maxleaf.EDI.DataAccess.K3
{
    public class t_ICItemQualityMap : EntityTypeConfiguration<t_ICItemQuality>
    {
        public t_ICItemQualityMap()
        {
            // Primary Key
            this.HasKey(t => t.FItemID);

            // Properties
            this.Property(t => t.FItemID)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            // Table & Column Mappings
            this.ToTable("t_ICItemQuality");
            this.Property(t => t.FItemID).HasColumnName("FItemID");
            this.Property(t => t.FInspectionLevel).HasColumnName("FInspectionLevel");
            this.Property(t => t.FInspectionProject).HasColumnName("FInspectionProject");
            this.Property(t => t.FIsListControl).HasColumnName("FIsListControl");
            this.Property(t => t.FProChkMde).HasColumnName("FProChkMde");
            this.Property(t => t.FWWChkMde).HasColumnName("FWWChkMde");
            this.Property(t => t.FSOChkMde).HasColumnName("FSOChkMde");
            this.Property(t => t.FWthDrwChkMde).HasColumnName("FWthDrwChkMde");
            this.Property(t => t.FStkChkMde).HasColumnName("FStkChkMde");
            this.Property(t => t.FOtherChkMde).HasColumnName("FOtherChkMde");
            this.Property(t => t.FStkChkPrd).HasColumnName("FStkChkPrd");
            this.Property(t => t.FStkChkAlrm).HasColumnName("FStkChkAlrm");
            this.Property(t => t.FIdentifier).HasColumnName("FIdentifier");
        }
    }
}
